﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoEdit_Add_Delete.aspx.cs" Inherits="DemoEdit_Add_Delete" %>

<%@ Register Src="UserControl/EditProduct.ascx" TagName="EditProduct" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>Web Mau</h2>
        <table>
            <tr>
                <td>
                </td>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="3" DataKeyNames="ProductId" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="ProductName" HeaderText="ProductName" />
                            <asp:BoundField DataField="CategoryName" HeaderText="CategoryName" />
                            <asp:BoundField DataField="QuantityPerUnit" HeaderText="QuantityPerUnit" />
                            <asp:BoundField DataField="UnitPrice" HeaderText="UnitPrice" />
                            <asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/Images/button_edit.gif" />
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="timeLabel" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <uc1:EditProduct ID="editProduct" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
